lexicographic product

字典式积